package com.yykj.user.center.server.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yykj.hospital.client.dto.DoctorDTO;
import com.yykj.hospital.client.dto.DoctorOnlinePriceSettingDTO;
import com.yykj.user.center.server.model.Evaluation;
import com.yykj.user.center.server.model.MedicalRecord;
import com.yykj.user.center.server.model.PatientCardInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author chenl
 * @version 1.0
 * @date 2021/11/6 13:14
 */
//问诊信息
@Data
public class ConsultationInfoDTO {

    @Id
    private String id;

    @ApiModelProperty("病情描述")
    private String description;

    private String weight;

    private String height;

    @ApiModelProperty("名族")
    private String nameFamily;

    @ApiModelProperty("血型")
    private String bloodTye;

    @ApiModelProperty("婚姻")
    private String marriage;

    @ApiModelProperty("生育")
    private String birth;

    @ApiModelProperty("过敏史")
    private String allergicHistory;

    @ApiModelProperty("现病史")
    private String medicalHistory;

    @ApiModelProperty("其他病史")
    private String otherMedicalHistory;

    @ApiModelProperty("家族病史")
    private String familyHistory;

    private String accountId;

    private Integer hospitalId;

    private String hospitalName;

    private Integer deptId;

    private String deptName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("接诊时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime receiveTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime updateTime;

    private PatientCardInfo patientCardInfo;

    private List<String> imgs;

    @ApiModelProperty("待接诊")
    private String waitingTreatment;

    @ApiModelProperty("电子病历")
    private MedicalRecord medicalRecord;

    @ApiModelProperty("状态：0生成订单 1待接诊  2问诊中  3已完成 4已退款")
    private Integer state=0;

    @ApiModelProperty("服务结束时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime serviceEndTime;

    private String patientName;


    private String birthday;

    private String sex;

    private Integer age;

    @ApiModelProperty("订单类型：11、图文问诊 12、语音问诊 13、视频问诊 14、检查订单 15、检验订单")
    private Integer orderType;

    private String doctorName;

    private List<Evaluation> evaluations;

    private List<DoctorOnlinePriceSettingDTO> doctorOnlinePriceSettingDTOS;

    private DoctorDTO doctorDTO;

    private DoctorDetailDTO doctorDetailDTO;

    @ApiModelProperty("医生腾讯Id")
    private String doctorTencentAccountId;

    @ApiModelProperty("患者腾讯Id")
    private String patientTencentAccountId;

    @ApiModelProperty("授权信息：0未授权 1已授权")
    private int auth = 0;

    @ApiModelProperty("处方ID")
    private String prescriptionId;
}
